package com.wsz.eduservice.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wsz.eduservice.pojo.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wsz.eduservice.pojo.frontvo.CourseFrontVo;
import com.wsz.eduservice.pojo.frontvo.CourseWebVo;
import com.wsz.eduservice.pojo.vo.CourseInfoVo;
import com.wsz.eduservice.pojo.vo.CoursePublic;
import com.wsz.eduservice.pojo.vo.PublishCourseQuery;

import java.util.List;
import java.util.Map;

/**
* @author wangs
* @description 针对表【edu_course(课程)】的数据库操作Service
* @createDate 2022-09-24 19:04:35
*/
public interface CourseService extends IService<Course> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String courseId);

    void updaCouresInfo(CourseInfoVo courseInfoVo);

    CoursePublic PublishCourseInfo(String courseId);

    Page<CoursePublic> getCoursePublicPage(Page<CoursePublic> pagey,
                                          String title,
                                          String teacherName,
                                          Integer lessonNum,
                                          String subjectLevelOne,
                                          String subjectLevelTwo);

    List<CoursePublic> getCoursePublicAll();

    void removeByCourseId(String courseId);

    List<Course> getCourseIndex();

    Map<String,Object> getCourseFrontList(Page<Course> pages, CourseFrontVo courseFrontVo);

    CourseWebVo getBaseCourseId(String courseId);

    List<Course> getBuyCourse(List<String> list);
}
